]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Stop using Meta.KeyBindingFlags.REVERSES for IM switch keybinding
authorChristophe Fergeau <cfergeau@redhat.com>
Thu, 29 May 2014 21:28:44 +0000 (23:28 +0200)
committerChristophe Fergeau <cfergeau@redhat.com>
Sun, 17 Aug 2014 17:33:22 +0000 (19:33 +0200)
When this flag is set on a MetaKeyBinding, mutter will know that
the keybinding has an associated reverse keybinding triggered with
the shift modifier. However, an undesirable side-effect is that
gnome-control-center keyboard panel does not know that this 'shift'
is reserved for these reverse keybindings and cannot detect
conflicting bindings in this case.
This 'reverse' logic can now be handled at a higher level (in gcc keyboard
panel) so this commit removes it from gnome-shell so that they do not
conflict.

https://bugzilla.gnome.org/show_bug.cgi?id=732296

js/ui/status/keyboard.js

index 032b9d52906e77a6ff723d359e1bed25f8e06de1..51b90fa918d226fb5d0a88c42fffeffe407d67f6 100644 (file)
@@ -366,13 +366,12 @@ const InputSourceIndicator = new Lang.Class({
         this._keybindingAction =
             Main.wm.addKeybinding('switch-input-source',
                                   new Gio.Settings({ schema_id: "org.gnome.desktop.wm.keybindings" }),
-                                  Meta.KeyBindingFlags.REVERSES,
+                                  Meta.KeyBindingFlags.NONE,
                                   Shell.KeyBindingMode.ALL,
                                   Lang.bind(this, this._switchInputSource));
         this._keybindingActionBackward =
             Main.wm.addKeybinding('switch-input-source-backward',
                                   new Gio.Settings({ schema_id: "org.gnome.desktop.wm.keybindings" }),
-                                  Meta.KeyBindingFlags.REVERSES |
                                   Meta.KeyBindingFlags.IS_REVERSED,
                                   Shell.KeyBindingMode.ALL,
                                   Lang.bind(this, this._switchInputSource));